package cn.itcast.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

public class WxOpenIdToken extends UsernamePasswordToken {

    private String openId;

    @Override
    public Object getPrincipal() {
        return openId;
    }

    @Override
    public Object getCredentials() {
        return openId;
    }

    public WxOpenIdToken(String openId){
        this.openId = openId;
    }
}
